﻿using System.Web.Mvc;
using Microsoft.Web.Mvc;

namespace SapaFinance.UI.Controllers
{
    public class HomeController : Controller
    {
        public virtual ActionResult Requests()
        {
            ViewBag.Message = "Модуль заявок";
            return this.RedirectToAction<RequestController>(x => x.GetRequests());
        }

        public virtual ActionResult Orders()
        {
            ViewBag.Message = "Модуль распоряжений";
            return this.RedirectToAction<OrderController>(x => x.Index());
        }

        public virtual ActionResult Index()
        {
            return this.RedirectToAction(c => c.Requests());
        }

        public virtual ActionResult Payments()
        {
            return new EmptyResult();
        }

        public virtual ActionResult RefBook()
        {
            return View();
        }
    }
}